import request from '@/utils/request'

// 查询图片资源列表
export function listImages(query) {
  return request({
    url: '/goods/images/list',
    method: 'get',
    params: query
  })
}

// 查询图片资源详细
export function getImages(imageId) {
  return request({
    url: '/goods/images/' + imageId,
    method: 'get'
  })
}

// 新增图片资源
export function addImages(data) {
  return request({
    url: '/goods/images',
    method: 'post',
    data: data
  })
}

// 修改图片资源
export function updateImages(data) {
  return request({
    url: '/goods/images',
    method: 'put',
    data: data
  })
}

// 删除图片资源
export function delImages(imageId) {
  return request({
    url: '/goods/images/' + imageId,
    method: 'delete'
  })
}

export function findNoSelImagesList(data) {
  return request({
    url: '/goods/images/findNoSelImagesList',
    method: 'get',
    params: data
  })
}
